package com.itqf.mapper;

import com.itqf.bean.DtsRole;
import com.itqf.dto.DtsSearchDto;

import java.util.List;
import java.util.Map;
import java.util.Set;

public interface DtsRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(DtsRole record);

    int insertSelective(DtsRole record);

    DtsRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(DtsRole record);

    int updateByPrimaryKey(DtsRole record);

    List<String> queryRoleNameByRoleIds(Integer[] roleIds);

    List<Map> queryRoleName();

    List<DtsRole> queryRoleByPage(DtsSearchDto roles);

    Long queryCountByRoleName(String rolename);

    int insertRole(DtsRole roles);

    int updateById(DtsRole roles);

    Long querySuper(int roleId);

    Set<String> queryPermissions(int roleId);
}